package ah.szxy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("account-service")
public interface OrderFeignService {

    @GetMapping("/debit/{userName}/{money}")
    public ResponseEntity debit(@PathVariable("userName") String userName, @PathVariable("money") int money);
}
